package com.zy.openchat.core.model.version;

import android.os.Parcel;
import android.os.Parcelable;

public class AppVersionInfo implements Parcelable {
    //最新版本序列号
    public int versionCode;
    //最新版本号
    public String version;
    //下载地址
    public String downloadUrl;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.versionCode);
        dest.writeString(this.version);
        dest.writeString(this.downloadUrl);
    }

    public AppVersionInfo() {
    }

    protected AppVersionInfo(Parcel in) {
        this.versionCode = in.readInt();
        this.version = in.readString();
        this.downloadUrl = in.readString();
    }

    public static final Creator<AppVersionInfo> CREATOR = new Creator<AppVersionInfo>() {
        @Override
        public AppVersionInfo createFromParcel(Parcel source) {
            return new AppVersionInfo(source);
        }

        @Override
        public AppVersionInfo[] newArray(int size) {
            return new AppVersionInfo[size];
        }
    };
}
